package com.wuxiaofan.api;

import com.wuxiaofan.service.AppService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("hello")
public class HelloApi {

    @Resource
    private AppService appService;

    @RequestMapping("demo1")
    public String demo1(){
        return appService.sayHello()+"   demo1";
    }



}
